package com.gxa.p2p.pojo;

import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/** 登录登出类,记录登录历史 */
@ToString
public class LoginLog implements Serializable {

  private static final long serialVersionUID = 2438254142138486410L;
  private Integer id; // 主键

  private Integer userId; // 用户id

  private Integer sysUserId; // 系统用户id

  private String clientIp; // 登录ip

  private String loginAddr; // 登录地址

  private Date loginDate; // 登录时间

  private Date logoutDate; // 登出时间

  public LoginLog(Integer id, Integer userId, Integer sysUserId, Date loginDate, Date logoutDate) {
    this.id = id;
    this.userId = userId;
    this.sysUserId = sysUserId;
    this.loginDate = loginDate;
    this.logoutDate = logoutDate;
    this.clientIp = clientIp;
    this.loginAddr = loginAddr;
  }

  public LoginLog() {
    super();
  }

  public String getClientIp() {
    return clientIp;
  }

  public void setClientIp(String clientIp) {
    this.clientIp = clientIp;
  }

  public String getLoginAddr() {
    return loginAddr;
  }

  public void setLoginAddr(String loginAddr) {
    this.loginAddr = loginAddr;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getSysUserId() {
    return sysUserId;
  }

  public void setSysUserId(Integer sysUserId) {
    this.sysUserId = sysUserId;
  }

  public Date getLoginDate() {
    return loginDate;
  }

  public void setLoginDate(Date loginDate) {
    this.loginDate = loginDate;
  }

  public Date getLogoutDate() {
    return logoutDate;
  }

  public void setLogoutDate(Date logoutDate) {
    this.logoutDate = logoutDate;
  }
}
